Src=$(shell ls book*.md)
Out=../../var/markdown

book : ready
	cp book.css $(Out)/book.css
	  cp img/* $(Out)
	#cat $(Src) | pandoc  -s -S --toc -c book.css -s --highlight-style haddock -m --biblio book.bib --csl ieee.csl  > $(Out)/book.html
	echo $(Src)
	cat $(Src) | pandoc  -N -s -S --toc -c book.css  -m -A footer.html --biblio book.bib --csl ieee.csl > $(Out)/book.html

view :
	firefox $(Out)/book.html &

ready : book.css footer.html book.bib ieee.csl
	mkdir -p $(Out)

demo3 : ready
	cp book.css $(Out)/demo3.css
	cat README | pandoc -s -S --toc -c demo3.css -A footer.html > $(Out)/demo3.html
	
